{% extends 'base.html' %}
{% block title %}
    <a class="navbar-brand" href="#"> 添加 {{ staff.username }} 的生涯信息 </a>
{% endblock %}
{% block content %}
<div class="content">
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<div class="card">
					<form id="allInputsFormValidation" class="form-horizontal"  method="post" >
						<div class="content">
							<h4 class="title">添加 {{ staff.username }} 的生涯信息</h4>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">起始年月<span style="color:red">*</span></label>
                                    <div class="col-sm-6">

                                        <input type="date" name="starttime" class="form-control datepicker" autocomplete="off" required>
                                    </div>
                                </div>
							</fieldset>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">截至年月<span style="color:red">*</span></label>
                                    <div class="col-sm-6">

                                        <input type="date" name="endtime" class="form-control datepicker" autocomplete="off" required>
                                    </div>
                                </div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">
										单位名称
									</label>
									<div class="col-sm-6">
										<input class="form-control" type="text" name="company_name" aria-required="true" autocomplete="off">
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">
										工作内容
									</label>
									<div class="col-sm-6">
										<input class="form-control" type="text" name="job_content" aria-required="true" autocomplete="off">
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">
										担当职务
									</label>
									<div class="col-sm-6">
										<input class="form-control" type="text" name="duty" aria-required="true" autocomplete="off">
									</div>
								</div>
							</fieldset>


							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">
										薪资
									</label>
									<div class="col-sm-6">
										<input class="form-control" type="text" name="pay" aria-required="true" autocomplete="off">
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">
										证明人
									</label>
									<div class="col-sm-6">
										<input class="form-control" type="text" name="certifier" aria-required="true" autocomplete="off">
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">
										证明人职务
									</label>
									<div class="col-sm-6">
										<input class="form-control" type="text" name="certifier_duty" aria-required="true" autocomplete="off">
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
									<label class="col-sm-2 control-label">
										手机号
									</label>
									<div class="col-sm-6">
										<input class="form-control" type="text" name="phone"  oninput="value = value.replace(/[^\d|xX]/g,'')" maxlength="11" autocomplete="off">
									</div>
								</div>
							</fieldset>

							<fieldset>
								<div class="form-group">
                                    <label class="col-sm-2 control-label">备注</label>
                                    <div class="col-sm-6">

                                        <textarea cols="50" rows="8" name="remark" class="form-control datepicker" autocomplete="off" ></textarea>
                                    </div>
                                </div>
							</fieldset>

						</div>
						<div class="card-footer text-center">
							<input type="submit" name="submit" class="btn btn-info btn-fill" value="提交">
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
{% endblock %}